import json
from config import BASE_PATH


def common_read_json_data(filename):
    with open(filename, "r", encoding="utf8") as f:
        json_data = json.load(f)
        login_list = []
        for i in json_data:
            val = i.values()
            tmp = tuple(val)
            login_list.append(tmp)
        return login_list


if __name__ == '__main__':
    filename = BASE_PATH + "/data/ihrm_login_data.json"
    res = common_read_json_data(filename)
    print(res)
